package ink.xiaobaibai.common;

import com.qiniu.common.QiniuException;
import com.qiniu.sms.SmsManager;
import com.qiniu.util.Auth;

import java.util.HashMap;
import java.util.Map;

/**
 * @description: 短信模板枚举类
 * @author: 小白白
 * @create: 2021-08-23
 **/

public class SmsTemplateID {

    public static void main(String[] args) throws QiniuException {
        Auth auth = Auth.create("-HBAe2Dtha4tX01JM1b5r4JUf5_DpjQyJ0SGdcny", "BaKNERCNzAscajqyDNKFtHdQpzL9epqb7hxzVTwS");
        SmsManager smsManager = new SmsManager(auth);
        Map<String, String> map = new HashMap<>();
        map.put("code", "asdc");
        map.put("type", "asd");
        smsManager.sendMessage("1424031489665806336", new String[]{"13723574890"}, map);
    }

}
